package cn.micai.shiro.chapter6.service;

import cn.micai.shiro.chapter6.entity.Role;

/**
 * @author zhaoxinguo on 2017/8/16.
 */
public interface RoleService {

    //创建角色
    public Role createRole(Role role);

    //移除角色
    public void deleteRole(Long roleId);

    //添加角色-权限之间关系
    public void correlationPermissions(Long roleId, Long... permissionIds);

    //移除角色-权限之间关系
    public void uncorrelationPermissions(Long roleId, Long... permissionIds);

}
